package com.zyp.service;

import com.zyp.dao.TheClassDao;
import com.zyp.factory.TheClassDaoFatory;
import org.junit.runners.model.TestClass;

import java.util.List;

public class TheClassDaoService {
    private TheClassDao theClassDao;

    public TheClassDaoService() {
        this.theClassDao= TheClassDaoFatory.getTheClassDao();
    }
    //自定义方法
    public int getStudetService(Object[] student){
        return theClassDao.add(student);
    }
    public int getDeleteService(String s){
        return theClassDao.delete(s);
    }
    public int getUpdateService(Object[] objects){
        return theClassDao.update(objects);
    }
    public List<Object[]> getPagingQueryService(int i){
        return theClassDao.pagingQuery(i);
    }
}
